#include<stdio.h>
int main(void)
{
	float x;
	float y;
	scanf("%f",&x);
	if(x>=0)
	y=x-5;
	else
	y=5/x;
	
	printf("y=%f",y);
	
	return 0;
	getchar();
}
